const promise = new Promise((resolve, reject) => {
  // resolve(12);
  reject(new Error("失败了"));
});
promise.then(
  (value) => {
    console.log(value);
  },
  (error) => {
    console.log(error);
  }
);

console.log("end")
